cmake_minimum_required(VERSION 3.15)
project(test_prop_inherited)

enable_testing()
add_test(NAME mytest COMMAND echo "abc")

#define_property(TEST PROPERTY test_prop BRIEF_DOCS "doc" FULL_DOCS "full doc")
define_property(TEST PROPERTY test_prop INHERITED BRIEF_DOCS "doc" FULL_DOCS "full doc")
#set_property(TEST mytest PROPERTY test_prop "value1")
#set_property(DIRECTORY "${PROJECT_SOURCE_DIR}" PROPERTY test_prop "test_prop in dir")
set_property(GLOBAL PROPERTY test_prop "test_prop in global")

get_property(var1 TEST mytest PROPERTY test_prop)
message(STATUS "test_prop = ${var1}")
get_test_property(mytest test_prop var2)
message(STATUS "test_prop = ${var2}")
